package com.eos.control.action.customer;

import java.util.List;

import com.eos.business.service.SysProductBusinessService;
import com.eos.common.tool.ConstantTool;
import com.eos.control.action.base.AbstractBaseAction;
import com.eos.orm.mybatis.model.SysProduct;

public class AddBrandAction extends AbstractBaseAction{
	private static final long serialVersionUID = 5186474619277066032L;
	private List<SysProduct> productList;
	
	public List<SysProduct> getProductList() {
		return productList;
	}

	@Override
	public String execute()  {
		try {
			SysProductBusinessService spbs = new SysProductBusinessService();
			SysProduct product = new SysProduct();
			product.setDealFlag(ConstantTool.DEAL_FALG_OK);
			product.setStatus(ConstantTool.STATUS_OK);
			productList = spbs.getSysProductExample(product);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return SUCCESS;
	}
}
